package com.yonyou.cms.epc.service.graphic;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cms.epc.client.dto.graphic.GradeInfoDTO;
import com.yonyou.cms.epc.client.entity.graphic.GradeInfoPO;
import com.yonyou.cms.epc.client.entity.graphic.GraphicAssemblyInfoPO;
import com.yonyou.cms.epc.client.entity.graphic.GraphicInfoPO;
import com.yonyou.cyx.framework.service.base.ICommonService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jxy
 * @since 2022-06-08
 */
public interface GradeInfoService extends ICommonService<GradeInfoDTO, GradeInfoPO,Integer> {
    /**
     * 查询下拉车型数据
     * @param params
     * @return List<GraphicModelPO> list集合
     * @author jxy
     * @since 2022-06-08
     */
    List<GraphicInfoPO> queryModel(Map<String, Object> params);
    /**
     * 查询下拉系统数据
     * @param map
     * @return List<querySystem> list集合
     * @author jxy
     * @since 2022-06-08
     */
    List<GraphicInfoPO> querySystem(Map<String, Object> map);
    /**
     * 查询系统
     * @param map
     * @return List<GraphicInfoPO>
     * @author jxy
     * @since 2022-06-08
     */
    List<GraphicInfoPO> queryGraphicInFo(Map<String, Object> map);
    /**
     * 查询总成或配件
     * @param map
     * @return List<GraphicAssemblyInfoPO>
     * @author jxy
     * @since 2022-06-08
     */
    List<GraphicAssemblyInfoPO> queryGraphicAssemblyInFo(Map<String, Object> map);
    /**
     * 查询总成或备件详情
     * @param graphicAssemblyInfoPo
     * @return List<GraphicAssemblyInfoPO>
     * @author jxy
     * @since 2022-06-08
     */
    List<GraphicAssemblyInfoPO> queryParts(GraphicAssemblyInfoPO graphicAssemblyInfoPo);
    /**
     * 增加和修改热点
     * @param assemblyId list
     * @return boolean
     * @author jxy
     * @since 2022-06-08
     */
    boolean insertAndUpdate(Integer assemblyId,List<GradeInfoPO> list);
    /**
     * 查询编辑页面配件信息
     * @param assemblyId
     * @return List<GraphicAssemblyInfoPO>
     * @author jxy
     * @since 2022-06-08
     */
    List<GraphicAssemblyInfoPO> queryPartsInFo(String graphicCode,String graphicId);
    /**
     * 查询总成或配件图片
     * @param map
     * @return List<Map<String, Object>> getfilelist
     * @author jxy
     * @since 2022-06-08
     */
    List<Map<String, Object>> getfilelist(@RequestParam Map<String, Object> map);
    /**
     * 查询替换件feign接口
     * @param queryCondition,page
     * @return
     */
    List<Map<String, Object>> getSubPartList(@RequestParam Map<String, Object> queryCondition);

}
